package com.apexsoft.margin.account.management.api.http;

import com.apexsoft.margin.account.management.constants.CommonConstants;
import com.apexsoft.margin.account.management.domain.excel.model.AllocationDataDomain;
import com.apexsoft.margin.account.management.domain.excel.model.DistributionDataDomain;
import com.apexsoft.margin.account.management.domain.excel.model.FirstChainDataDomain;
import com.apexsoft.margin.account.management.domain.excel.model.RecycleDomain;
import com.apexsoft.margin.account.management.domain.excel.service.*;
import com.apexsoft.margin.account.management.persistent.repository.AllocationExcelRepositoryImpl;
import com.apexsoft.margin.account.management.persistent.repository.DistributionExcelRepositoryImpl;
import com.apexsoft.margin.account.management.persistent.repository.FirstChainExcelRepositoryImpl;
import com.apexsoft.margin.account.management.persistent.repository.RecycleExcelRepositoryImpl;
import com.apexsoft.margin.account.management.util.DealResp;
import com.apexsoft.margin.account.management.util.GsonUtil;
import com.apexsoft.margin.account.management.util.ResultUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.UUID;

@RestController
@RequestMapping("/upload")
public class UploadExcelController {
    private static Logger LOGGER = LoggerFactory.getLogger(UploadExcelController.class) ;

    RecycleExcelRepositoryImpl recycleExcelRepository = null;
    DistributionExcelRepositoryImpl distributionExcelRepository = null;
    FirstChainExcelRepositoryImpl firstChainExcelRepository = null;
    AllocationExcelRepositoryImpl allocationExcelRepository = null;

    public UploadExcelController() {
        this.recycleExcelRepository = new RecycleExcelRepositoryImpl() ;
        this.distributionExcelRepository = new DistributionExcelRepositoryImpl() ;
        this.firstChainExcelRepository = new FirstChainExcelRepositoryImpl() ;
        this.allocationExcelRepository = new AllocationExcelRepositoryImpl() ;
    }






}
